package com.mapforge.splash;

import javax.swing.event.ChangeListener;

import com.mapforge.gui.frames.MapEditorGUI;

public class MapEditorLoader implements Runnable {
	ChangeListener listener;
	MapEditorGUI mapEditorGUI;

	public MapEditorLoader(ChangeListener listener) {
		this.listener = listener;
	}

	public synchronized MapEditorGUI getGUI() {
		return mapEditorGUI;
	}

	public void run() {
		mapEditorGUI = new MapEditorGUI(listener);
		mapEditorGUI.setVisible(true);
	}
}
